package com.piece.blog.service;

import com.piece.blog.model.CourseChapters;
import com.piece.blog.repository.CourseChaptersRepository;
import com.piece.core.jpa.repository.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.PostConstruct;

@Service
@Transactional
public class CourseChaptersService extends BaseService<CourseChapters, String> {

    @Autowired
    private CourseChaptersRepository courseChaptersRepository;

    @PostConstruct
    public void initRepository() {
        setRepository(courseChaptersRepository);
    }

}
